using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Collections;
using System.Collections.Specialized;
using UMC.Data;

namespace UMC.Web
{
    /// <summary>
    /// 时间处理
    /// </summary>
    public class UITimer : UMC.Data.IJSON
    {
        WebMeta meta = new WebMeta();
        public UITimer Start(int start)
        {
            meta.Put("start", start);
            return this;
        }
        public UITimer Interval(int interval)
        {
            meta.Put("interval", interval);
            return this;
        }
        public UITimer Count(int count)
        {
            meta.Put("count", count);
            return this;
        }

        public UITimer End(int end)
        {
            meta.Put("end", end);
            return this;
        }
        public UITimer CurrentValue(String value)
        {
            meta.Put("current", value);
            return this;
        }
        public UITimer NextValue(String value)
        {
            meta.Put("next", value);
            return this;
        }
        public UITimer Click(UIClick click)
        {
            meta.Put("click", click);
            return this;
        }

        void Data.IJSON.Read(string key, object value)
        {

        }
        void Data.IJSON.Write(System.IO.TextWriter writer)
        {
            UMC.Data.JSON.Serialize(this.meta, writer);

        }
    }
}
